package com.woniuxy.hospital.service.impl;

import com.woniuxy.hospital.entity.HplPerm;
import com.woniuxy.hospital.mapper.HplAdminMapper;
import com.woniuxy.hospital.service.IHplAdminService;
import com.woniuxy.hospital.entity.HplAdmin;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-08-12
 */
@Service
public class HplAdminServiceImpl extends ServiceImpl<HplAdminMapper, HplAdmin> implements IHplAdminService {

    //根据管理员ID获取权限
    public List<HplPerm> getPermsByAdminId(int admin_id){
        return getBaseMapper().getPermsByAdminId(admin_id);
    }
}
